package com.ruoyi.swimming.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 泳票次数对象 swimming_ticket_times
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public class SwimmingTicketTimes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 泳票id */
    @Excel(name = "泳票id")
    private Long swimTicketId;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationTime;

    /** 状态 0：正常，1：已过期 */
    @Excel(name = "状态 0：正常，1：已过期")
    private Long status;

    /** 是否核销 */
    @Excel(name = "是否核销")
    private Integer isWriteOff;

    /** 核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date writeOffTime;

    /** 核销人 */
    @Excel(name = "核销人")
    private String writeOffPeo;

    /** 泳票类型 0：游泳票，1：泳票体验券，2：泳课体验券 */
    @Excel(name = "泳票类型 0：游泳票，1：泳票体验券，2：泳课体验券")
    private Long ticketType;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @TableLogic
    private Integer isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSwimTicketId(Long swimTicketId) 
    {
        this.swimTicketId = swimTicketId;
    }

    public Long getSwimTicketId() 
    {
        return swimTicketId;
    }
    public void setExpirationTime(Date expirationTime) 
    {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime() 
    {
        return expirationTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setIsWriteOff(Integer isWriteOff) 
    {
        this.isWriteOff = isWriteOff;
    }

    public Integer getIsWriteOff() 
    {
        return isWriteOff;
    }
    public void setWriteOffTime(Date writeOffTime) 
    {
        this.writeOffTime = writeOffTime;
    }

    public Date getWriteOffTime() 
    {
        return writeOffTime;
    }
    public void setWriteOffPeo(String writeOffPeo) 
    {
        this.writeOffPeo = writeOffPeo;
    }

    public String getWriteOffPeo() 
    {
        return writeOffPeo;
    }
    public void setTicketType(Long ticketType) 
    {
        this.ticketType = ticketType;
    }

    public Long getTicketType() 
    {
        return ticketType;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("swimTicketId", getSwimTicketId())
            .append("expirationTime", getExpirationTime())
            .append("status", getStatus())
            .append("isWriteOff", getIsWriteOff())
            .append("writeOffTime", getWriteOffTime())
            .append("writeOffPeo", getWriteOffPeo())
            .append("ticketType", getTicketType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
